package org.devgframwork.flowsystem.api.admin.menu.controller;

import org.devgframwork.flowsystem.api.admin.menu.entity.vo.MenuVo;
import org.devgframwork.flowsystem.api.admin.menu.service.MenuService;
import org.devgframwork.platform.model.ResultModel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(value = "/api/admin/menu", tags = "菜单管理")
@Slf4j
@RestController
public class AdminMenuController {

    @Resource
    private MenuService menuService;

    @ApiOperation("菜单列表")
    @GetMapping(value = {"/api/admin/menu/menuList"})
    public ResultModel<List<MenuVo>> menuList() {
        return menuService.getMenuList();
    }
}
